import request from "@/util/request";

/**
 * @description 查询当前hr岗位
 * @param data
 * @returns {Promise}
 */
export function getMyPublish(data) {
	return request({
		url: '/getMyPublish',
		method: 'GET',
		data
	})
}
/**
 * @description 关闭岗位
 * @param data
 * @returns {Promise}
 */
export function doClosePublish(data) {
	return request({
		url: '/doClosePublish',
		method: 'GET',
		data
	})
}
/**
 * @description 开放岗位
 * @param data
 * @returns {Promise}
 */
export function doOpenPublish(data) {
	return request({
		url: '/doOpenPublish',
		method: 'GET',
		data
	})
}

/**
 * @description 获取岗位详情
 * @param data
 * @returns {Promise}
 */
export function findAllJobById(data) {
	return request({
		url: '/findAllJobById',
		method: 'GET',
		data
	})
}

/**
 * @description 提交岗位
 * @param data
 * @returns {Promise}
 */
export function addAndUpdateJob(data) {
	return request({
		url: '/addAndUpdateJob',
		method: 'POST',
		data
	})
}

/**
 * @description 获取岗位列表
 * @param data
 * @returns {Promise}
 */
export function getPublish(data) {
	return request({
		url: '/getPublish',
		method: 'GET',
		data
	})
}
/**
 * @description 根据ID查询岗位
 * @param data
 * @returns {Promise}
 */
export function getJobById(data) {
	return request({
		url: '/findAllJobById',
		method: 'GET',
		data
	})
}

/**
 * @description 三级岗位
 * @param data
 * @returns {Promise}
 */
export function findJobNameApi(data) {
	return request({
		url: '/findJobName',
		method: 'POST',
		data
	})
}

/**
 * @description 提交简历
 * @param data
 * @returns {Promise}
 */
export function insertWorkApplyApi(data) {
	return request({
		url: '/insertWorkApply',
		method: 'POST',
		data
	})
}
/**
 * @description 打开岗位
 * @param data
 * @returns {Promise}
 */
export function openPosition(data) {
	return request({
		url: '/doOpenPublish',
		method: 'get',
		data
	})
}
/**
 * @description 获取职位福利
 * @param data
 * @returns {Promise}
 */
export function getWelfareListApi(data) {
	return request({
		url: '/getWelfareList',
		method: 'get',
		data
	})
}
/**
 * @description 获取职位福利
 * @param data
 * @returns {Promise}
 */
export function getJobWelfareListApi(data) {
	return request({
		url: '/getJobWelfareList',
		method: 'get',
		data
	})
}
